
//***********************************************
//
//      Filename: StringBufferDemo.java
//
//        Author: wwb
//        Mails: 1274860621@qq.com
//        Create: 2018-04-21 12:01:43
// Last Modified: 2018-04-21 12:01:43
//***********************************************
public class StringBufferDemo{
    public static void main(String [] args){
              StringBuffer buffer = new StringBuffer();
              buffer.append('S');
               buffer.append("tringBuffer");
        //     System.out.println(buffer.charAt(1));
               System.out.println(buffer.capacity());
        //     System.out.println(buffer.indexOf("tring12345"));
               System.out.println("buffer = " + buffer.toString());
              System.out.println(buffer.length());
          }


}
